<?php
// 本类由系统自动生成，仅供测试用途
class IntroAction extends Action {
    public function index(){
		R('Index/indexpic');
		$this->gangwei();
		$this->gangweitel();
        $this->display();
    }
	public function gangwei(){
		$model=M('article');
		$cond['type']='岗位介绍';
		$cond['id']=$_GET['id'];
		if($_GET['id']==null){
			$cond['id']='10';
		}
		$index=$model->where($cond)->select();
		$gangwei=$index[0]['content'];
		$this->assign('gangwei',$gangwei);
	}
	public function gangweitel(){
		$model=M('article');
		$cond['type']='岗位介绍';
		$cond['id']=$_GET['id'];
		if($_GET['id']==null){
			$cond['id']='10';
		}
		$index=$model->where($cond)->select();
		$gangwei=$index[0]['author'];
		$this->assign('gangweitel',$gangwei);
	}
}